#pragma once
template <class T>
class CSingleton
{
public:
	static T* instance;
	static T* Instance()
	{
		if (instance == nullptr)
		{
			instance = new T;
		}
		return instance;
	};

};

template <class T>
T* instance = nullptr;